{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "createdAt",
    "updatedAt",
    "version",
    "packageType",
    "project",
    "publicPackage",
    "tags",
    "pipelines",
    "versions",
    "status",
    "canDestroy",
    "lastDownloadedAt",
    "_links"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "version": {
      "type": [
        "string",
        "null"
      ]
    },
    "canDestroy": {
      "type": [
        "boolean"
      ]
    },
    "packageType": {
      "type": [
        "string"
      ],
      "enum": [
        "MAVEN",
        "NPM",
        "CONAN",
        "NUGET",
        "PYPI",
        "COMPOSER",
        "GENERIC",
        "GOLANG",
        "RUBYGEMS",
        "DEBIAN",
        "HELM"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "count": {
          "type": "integer"
        },
        "pageInfo": {
          "type": "object"
        },
        "edges": {
          "type": "array"
        },
        "nodes": {
          "type": "array"
        }
      }
    },
    "project": {
      "type": "object"
    },
    "publicPackage": {
      "type": "boolean"
    },
    "pipelines": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "pageInfo": {
          "type": "object"
        },
        "count": {
          "type": "integer"
        },
        "edges": {
          "type": "array"
        },
        "nodes": {
          "type": "array"
        }
      }
    },
    "versions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "count": {
          "type": "integer"
        },
        "pageInfo": {
          "type": "object"
        },
        "edges": {
          "type": "array"
        },
        "nodes": {
          "type": "array"
        }
      }
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "./package_composer_metadata.json"
        },
        {
          "$ref": "./package_conan_metadata.json"
        },
        {
          "$ref": "./package_maven_metadata.json"
        },
        {
          "$ref": "./package_nuget_metadata.json"
        },
        {
          "$ref": "./package_pypi_metadata.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "packageFiles": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "count": {
          "type": "integer"
        },
        "pageInfo": {
          "type": "object"
        },
        "edges": {
          "type": "array"
        },
        "nodes": {
          "type": "array"
        }
      }
    },
    "status": {
      "type": [
        "string"
      ],
      "enum": [
        "DEFAULT",
        "HIDDEN",
        "PROCESSING",
        "ERROR"
      ]
    },
    "dependencyLinks": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "pageInfo": {
          "type": "object"
        },
        "edges": {
          "type": "array"
        },
        "count": {
          "type": "integer"
        },
        "nodes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "dependencyType": {
                "type": "string"
              },
              "dependency": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "versionPattern": {
                    "type": "string"
                  }
                }
              },
              "metadata": {
                "anyOf": [
                  {
                    "$ref": "./package_nuget_dependency_link_metadata.json"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "npmUrl": {
      "type": "string"
    },
    "mavenUrl": {
      "type": "string"
    },
    "conanUrl": {
      "type": "string"
    },
    "nugetUrl": {
      "type": "string"
    },
    "pypiUrl": {
      "type": "string"
    },
    "pypiSetupUrl": {
      "type": "string"
    },
    "composerUrl": {
      "type": "string"
    },
    "composerConfigRepositoryUrl": {
      "type": "string"
    },
    "lastDownloadedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "_links": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "webPath": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}
